#pragma once
#define SIZE 1024
#define FLUSH_NODE 0
#define FLUSH_LINE 1
#define FLUSH_FULL 2
struct mFILE{
    int fd;
    int flag;//文件刷新方式
    char buffer[SIZE];
    int cap;
int size;
};
typedef struct mFILE mFILE;
mFILE* mfopen(const char*filename,const char*mode);
int  mfwrite(char*str,int num,mFILE*stream);
void mfflush(mFILE*stream);
int mfclose(mFILE*stream);
